<?php

use think\migration\Migrator;
use think\migration\db\Column;

class AlterAgentAddSecurityTag extends Migrator
{
    public function up()
    {
        $this->table('agent')
            ->addColumn('security_tag', 'string', ['limit' => 200, 'default' => '', 'comment' => '账户加密字符'])
            ->update();
    }

    public function down()
    {
        $this->table('agent')->removeColumn('security_tag')->update();
    }
}
